﻿using System;

namespace ConsoleApp1
{
    class Teacher
    {
        string nameA;
        string nameB;
        string nameC;
        string nameD;
        static string teacherA = "唐僧";

        public string NameA
        {
            get { return this.nameA; }
            set { this.nameA = value; }
        }
        public string NameB
        {
            get { return this.nameB; }
            set { this.nameB = value; }
        }
        public string NameC
        {
            get { return this.nameC; }
            set { this.nameC = value; }
        }
        public string NameD
        {
            get { return this.nameD; }
            set { this.nameD = value; }
        }
        public void Test()
        {
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nameA, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nameB, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nameC, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nameD, teacherA);
            Test1();
            Console.WriteLine("--------------------------------------------------------------");
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nameA, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nameB, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nameC, teacherA);
            Console.WriteLine("我的名字是{0}，俺老师叫{1}", this.nameD, teacherA);
        }
        void Test1()
        {
            teacherA = "嫦娥";
        }


    }
}